import request from '@/utils/request'

export function getSessionList(data) {
  return request({
    url: '/sessionList/not',
    method: 'get',
    params: { id: data.id }
  })
}

export function sessionListAlready(data) {
  return request({
    url: '/sessionList/already',
    method: 'get',
    params: { id: data.id }
  })
}

export function createSession(data) {
  return request({
    url: '/sessionList/createSession',
    method: 'get',
    params: { id: data.id, toUserId: data.toUserId, toUserName: data.toUserName }
  })
}

export function delSession(data) {
  return request({
    url: '/sessionList/delSession',
    method: 'get',
    params: { sessionId: data.sessionId }
  })
}
